#ifndef REG_WIN_H
#define REG_WIN_H

#include "watcher.h"
#include "ui_reg.h"
#include <QDialog>
#include <QPoint>

class Reg_Dialog: public QDialog, public Ui::Reg_Dialog
{
    Q_OBJECT

public:
    Reg_Dialog(Watcher * ptr, QDialog *parent = NULL);

private slots:
    void on_submit_button_clicked();

private:
    void mousePressEvent(QMouseEvent *);        //自定义一个鼠标点击事件函数
    void mouseMoveEvent(QMouseEvent * event);   //实现窗口拖拽

    QPoint dragPosition;                        //定义一个QPoint的成员变量
    Watcher *gsyncer;
};

#endif // REG_WIN_H
